package com.company.model.result;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 图片验证码结果实体
 * Created by tu on 2017/7/3.
 */
public class CaptchaImageResult implements Serializable {

  private static final long serialVersionUID = -171691948445474643L;
  public String id;
  public byte[] image;
  private String captcha;

  public String getCaptcha() {
    return captcha;
  }

  public CaptchaImageResult() {
  }

  public CaptchaImageResult(String id, byte[] image, String captcha) {
    this.id = id;
    this.image = image;
    this.captcha = captcha;
  }

  @Override
  public String toString() {
    return "CaptchaImageResult{" +
        "id='" + id + '\'' +
        ", image=" + Arrays.toString(image) +
        ", captcha='" + captcha + '\'' +
        '}';
  }
}
